import yaml

from utils.handle_path import HuaYanPath


def get_yaml_data(yaml_file):
    with open(yaml_file,'r',encoding='utf-8') as fo:
        # yaml_data = fo.read()
        return yaml.safe_load(fo.read())

if __name__ == '__main__':
    print(get_yaml_data(HuaYanPath.configs_path / 'apiConfig.yaml'))